/*
 * @Author: AHANG
 * @Date: 2022-07-07 14:58:19
 * @LastEditors: AHANG
 * @LastEditTime: 2022-07-08 10:07:54
 * @Description:
 */
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "http://127.0.0.1:3000/api",
        changeOrigin: true, // 解决跨域
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
